using System;
using ns27;
using Triton.Game.Mono;

namespace Triton.Game.Mapping
{
	[Attribute38("Error")]
	public class Error : MonoClass
	{
		public Error(IntPtr address, string className)
			: base(address, className)
		{
		}

		public Error(IntPtr address)
			: this(address, "Error")
		{
		}

		public static void AddWarning(ErrorParams parms)
		{
			MonoClass.smethod_19(TritonHs.MainAssemblyPath, "", "Error", "AddWarning", new Class276.Enum20[1] { Class276.Enum20.Class }, parms);
		}

		public static void AddFatal(string message)
		{
			MonoClass.smethod_19(TritonHs.MainAssemblyPath, "", "Error", "AddFatal", new Class276.Enum20[1] { Class276.Enum20.String }, message);
		}

		public static void AddFatal(ErrorParams parms)
		{
			MonoClass.smethod_19(TritonHs.MainAssemblyPath, "", "Error", "AddFatal", new Class276.Enum20[1] { Class276.Enum20.Class }, parms);
		}

		public static bool ShouldUseWarningDialogForFatalError()
		{
			return MonoClass.smethod_14<bool>(TritonHs.MainAssemblyPath, "", "Error", "ShouldUseWarningDialogForFatalError", Array.Empty<object>());
		}

		public static void ShowWarningDialog(ErrorParams parms)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "Error", "ShowWarningDialog", parms);
		}

		public static void OnWarningPopupResponse(AlertPopup.Response response, object userData)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "Error", "OnWarningPopupResponse", response, userData);
		}
	}
}
